package org.dromara.visitor.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.dromara.visitor.domain.entity.ApplyRecord;
import org.dromara.visitor.mapper.ApplyRecordMapper;
import org.dromara.visitor.service.ApplyRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApplyRecordServiceImpl extends ServiceImpl<ApplyRecordMapper, ApplyRecord> implements ApplyRecordService {
    @Resource
    private ApplyRecordMapper applyRecordMapper;
    @Override
    public List<ApplyRecord> listByApplyId(Long id) {
        LambdaQueryWrapper<ApplyRecord> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ApplyRecord::getApplyId,id);
        List<ApplyRecord> applyRecords = applyRecordMapper.selectList(queryWrapper);
        return applyRecords;
    }
}
